(function(){
    
    
    $.fn.value = function(arg1){
        
        var $this = $(this);
        var set = (arg1 == undefined) ? true : false;
        
        if($this.is("textarea,input,select")){
            
            if(set == true){
                
                $this.val(arg1);
                
            }else{
                
                // check if it's a radio field
                if($this.is("radio")){
                    
                    $this.val();
                                        
                }else{
                    
                    
                    
                }
                
            }
            
        }
        
    }
    
})
